<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:each="item:${obj}">
    <span th:text="${#dates.format(item.time,'yyyy-MM-dd HH:mm:SS')}">格式化时间</span>
    <span th:if="${#strings.isEmpty(item.name)}">空白</span>
    <span th:if="${#strings.contains(item.name,'wangchuang')}">包含long</span>
</div>

<div th:text="${#dates.format(info,'yyyy-MM-dd HH:mm:SS')}">格式化时间</div>
<div th:text="${#dates.format(need.time,'yyyy-MM-dd HH:mm:SS')}">格式化时间</div>
<div th:text=${need}>格式化时间</div>

</body>
</html>